﻿using Castle.Services.Transaction;

namespace Meqs.Logic
{
    /// <summary>
    /// 全局的事务管理器
    /// </summary>
    public class TeTransactionManager
    {
        static private DefaultTransactionManager _tm;
        private TeTransactionManager()
        {
            _tm = new DefaultTransactionManager();
        }

        /// <summary>
        /// 获取管理器实例
        /// </summary>
        /// <returns></returns>
        static public DefaultTransactionManager GetInstance()
        {
            if (_tm == null)
                new TeTransactionManager();

            return _tm;
        }

    }
}
